// 物料属性
export const madeTypeOptions = [
  {label: "自制件", value: "M", type: "primary", color: ""},
  {label: "采购件", value: "P", type: "warning", color: ""},
  {label: "委外件", value: "S", type: "success", color: ""},
  {label: "虚拟件", value: "Y", type: "danger", color: ""},
];

export const madeTypeMixins = (data) => {
  return madeTypeOptions.find(item => item.label === data);
};
